import request from "@/utils/request"

// 利润报表-销售趋势
export const profitSalesTrend = (data) =>
  request({
    url: "/report/profit/sales/trend",
    method: "post",
    data,
  })

// 利润报表-概览
export const profitComposite = (data) =>
  request({
    url: "/report/profit/composite",
    method: "post",
    data,
  })
// 利润报表-概览
export const profitOverflow = (data) =>
  request({
    url: "/report/profit/index/overflow",
    method: "post",
    data,
  })

// 利润导出报表  店铺费用
export const shopExpenses = (data) =>
  request({
    url: "/report/order/shop/expenses",
    method: "post",
    data,
  })

// 利润导出报表  店铺维度
export const profitSku = (data) =>
  request({
    url: "/report/profit/sku",
    method: "post",
    data,
  })
// 利润导出报表  订单明细
export const profitDetail = (data) =>
  request({
    url: "/report/profit/detail",
    method: "post",
    data,
  })
// 获取事件分组归档列表
export function groupArchive(data) {
  return request({
    url: `/amazon/group/archive`,
    method: "post",
    data,
  })
}
// 亚马逊结算事件详情
export function groupArchiveDetail(data) {
  return request({
    url: `/amazon/group/archive/detail`,
    method: "post",
    data,
  })
}
// 亚马逊结算事件绑定店铺
export const groupArchiveMigrate = (data) =>
  request({
    url: "/amazon/group/archive/migrate",
    method: "post",
    data,
  })
